x86: make cpu_2_logical_apicid private to x2apic code
authorJan Beulich <jbeulich@suse.com>
Thu, 8 Nov 2012 16:56:12 +0000 (17:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 8 Nov 2012 16:56:12 +0000 (17:56 +0100)
commit6405495e4a139ed1426f5b06851ae8d77036d6c4
tree57f2fc98891f0ac998b99f4c7758c8f88abeac01
parent89238ef7797023f318f82f4f9dddef59c435b8bd
x86: make cpu_2_logical_apicid private to x2apic code

... as it in fact is only being used there. While moving it, also make
it a per-CPU variable rather than a NR_CPUS-sized array.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/apic.c
xen/arch/x86/genapic/x2apic.c
xen/arch/x86/smp.c
xen/arch/x86/smpboot.c
xen/include/asm-x86/apic.h
xen/include/asm-x86/smp.h